package com.外观模式;

public class DVDPlayer {

    //使用单例模式的饿汉式
    private static DVDPlayer dvdPlayer=new DVDPlayer();

    public static DVDPlayer getInstance(){
        return dvdPlayer;
    }

    public void on(){
        System.out.println("DVD打开了..........");
    }

    public void off(){
        System.out.println("DVD关闭了..........");
    }

    public void play(){
        System.out.println("DVD播放 ..........");
    }

    public void pouse(){
        System.out.println("DVD暂停了");
    }
}
